package com.software.software.model;

import java.util.Date;

public class checkCodeInfo {
    public String checkCode;
    public long createTime;
    public String userEmail;
    public boolean is_right(String inputCode) {
        System.out.println(checkCode);
        if (createTime + 3 * 60 * 1000 > new Date().getTime()) {
            if (checkCode.equals(inputCode)) {
                createTime = 0;
                return true;
            }
        }
        return false;
    }
}
